libxc/save: refactor of send_domain_memory_live()
authorYang Hongyang <yanghy@cn.fujitsu.com>
Mon, 18 May 2015 07:03:54 +0000 (15:03 +0800)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 29 May 2015 11:25:00 +0000 (12:25 +0100)
commitcfa955591caea5d7ec505cdcbf4442f2d6e889e1
treea8c26637e1c7aadc5316f8ae5bbc19f18d125642
parent6b05648d12ea2a797d6ef9ebc074ee0c03646bce
libxc/save: refactor of send_domain_memory_live()

Split the send_domain_memory_live() into three helper function:
  - send_memory_live()  do the actually live send
  - suspend_and_send_dirty() suspend the guest and send dirty pages
  - send_memory_verify()
The motivation of this is that when we send checkpointed stream, we
will skip the actually live part.

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
CC: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_sr_save.c